home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga News 96
/
Amiga News 96.iso
/
amig_ad_os
/
avm
/
prog
/
source
/
playdate.avmsrc
< prev
next >
Wrap
Text File
|
1977-12-31
|
2KB
|
79 lines
startrecord=true
label=playdate
nodetype=14
comment=We're going to play the month and day
nextactiontype=3
nextactionaction=
endrecord=true
startrecord=true
label=
nodetype=8
line1=procedure
line2=parse arg actualDate
line3=
line4=
line5=
line6=
line7=
line8=
line9=
line10=
nextactiontype=3
nextactionaction=
endrecord=true
startrecord=true
label=
nodetype=8
line1=dateformat = getclip('AVMDateFormat')
line2=if dateformat = "" then dateformat = "%month %day"
line3=else if upper(dateformat) = "NONE" then dateformat = ""
line4=
line5=
line6=
line7=
line8=
line9=
line10=
nextactiontype=3
nextactionaction=
endrecord=true
startrecord=true
label=
nodetype=8
line1=do i = 1 to words(dateformat)
line2= if upper(word(dateformat, i)) = "%MONTH" then
line3= call playAVoice('avm:voices/month'||numberToMonth(substr(actualDate, 5, 2)+0))
line4= else if upper(word(dateformat, i)) = "%DAY" then
line5= call playddnumber(substr(actualDate, 7, 2))
line6= else
line7= call playAVoice(word(dateformat, i))
line8=end
line9=
line10=
nextactiontype=3
nextactionaction=
endrecord=true
startrecord=true
label=
nodetype=14
comment=We're done
nextactiontype=2
nextactionaction=return
endrecord=true
startrecord=true
label=numberToMonth
nodetype=8
line1=procedure
line2=parse arg m
line3=m_.1='january';m_.2='february';m_.3='march'
line4=m_.4='april';m_.5='may';m_.6='june'
line5=m_.7='july';m_.8='august';m_.9='september'
line6=m_.10='october';m_.11='november';m_.12='december'
line7=
line8=
line9=
line10=
nextactiontype=2
nextactionaction=return m_.m
endrecord=true